package com.bwie.controller;

import com.bwie.Vo.LoginVo;
import com.bwie.service.TbUserService;
import com.bwie.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @projectName: week0626
 * @package: com.bwie.controller
 * @className: InDexController
 * @author: 杨珂
 * @description: TODO
 * @date: 2025/6/26 9:32
 * @version: 1.0
 */
@RestController
@RequestMapping("/user/index")
public class InDexController {


    @Autowired
    TbUserService tbUserService;


    @PostMapping("login")
    public R login(@RequestBody LoginVo loginVo) {
        return tbUserService.login(loginVo);
    }

}
